﻿@model IEnumerable<OnlineBookstore.Models.OrderInfo>

@{
	Layout = null;
}

<head>
	<meta charset="utf-8" />
	<title>后台管理</title>
	<link rel="stylesheet" href="~/conjs/global.css" />
	<link href="~/conjs/cityLayout.css" type="text/css" rel="stylesheet">
	<link rel="stylesheet" href="~/conjs/Site.css" />
    <style>
        :root {
            --primary-color: #2c3e50;
            --secondary-color: #ecf0f1;
            --accent-color: #e74c3c;
            --text-color: #34495e;
        }

        body {
            font-family: 'Segoe UI', system-ui, sans-serif;
            background: #f8f9fa;
            height:100vh;
        }

        /* 页眉样式 */
        #header {
            background: var(--primary-color);
            padding: 1rem 2rem;
            display: flex;
            justify-content: space-between;
            align-items: center;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }

        #logotxt {
            color: white;
            font-size: 1.8rem;
            font-weight: 600;
        }

        /* 导航样式 */
        .nav {
            background-color: #34495e;
            padding: 10px 0;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }

            .nav ul {
                list-style: none;
                padding: 0;
                margin: 0;
                display: flex;
                justify-content: center;
                flex-wrap: wrap;
                gap: 20px;
            }

            .nav li a {
                color: white;
                text-decoration: none;
                padding: 5px 10px;
                border-radius: 4px;
                transition: all 0.3s ease;
                font-size: 14px;
            }

                .nav li a:hover {
                    background-color: rgba(255,255,255,0.1);
                    text-decoration: underline;
                }

        .container {
            width: 95%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            position:relative;
        }

        /* 主要内容 */
        #content {
            padding: 2rem;
            width: 80%;
            margin: 0 auto;
            position:relative;
        }

        .dashboard-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 2rem;
        }

        .dashboard-title {
            color: var(--primary-color);
            font-size: 1.8rem;
        }

        /* 表格样式 */
        .table {
            width: 100%;
            border-collapse: collapse;
            margin-top: 20px;
        }

            .table th,
            .table td {
                padding: 1rem;
                text-align: left;
                border-bottom: 1px solid #ddd;
            }

            .table th {
                background-color: var(--secondary-color);
                color: var(--text-color);
            }

            .table tr:hover {
                background-color: #f5f5f5;
            }

        .action-btn {
            padding: 0.5rem 1rem;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        .edit-btn {
            background: #3498db;
            color: white;
        }

        .detail-btn {
            background: #9b59b6;
            color: white;
        }
        .head {
            background-color: lightskyblue;
            border-radius: 20px;
            text-decoration: none;
            font-size: 0.9rem;
            transition: all 0.3s ease;
            align-items: center;
        }
        /* 页脚 */
        #footer {
            background: var(--primary-color);
            color: white;
            text-align: center;
            margin-top: auto;
            padding: 1.5rem;
            margin-top: 3rem;
            width: 100%;
            height: 100px;
            /* footer的高度一定要是固定值*/
            position: relative;
            bottom: 0px;
        }
	</style>
</head>
<body>
    <div>

    <div id="all">
        <!--页眉-->
        <!--未登录-->
        <div id="header">
            <div id="logo"><span id="logotxt">网上书城</span></div>
            <div id="loginmsg">
                @Html.ActionLink("退出", "Index", "ShopInfo", null, new { @class = "action-btn", style = "background: var(--accent-color);" })
            </div>
        </div>
            <div style="clear:both;"></div>
        </div>
        <nav class="nav">
            <div class="container">
                <ul>
                    <li class="head"><a href="/OrderInfo/Index">订单设置</a></li>
                    <li><a href="/CapitalAdvanc/Index">客户账户设置</a></li>
                    <li><a href="/BookDetailsInfo/GetBookList">书籍设置</a></li>
                    <li><a href="/ShopInfo/GetShopList">客户设置</a></li>
                    <li ><a href="/AdministrationInfo/GetAdmin">管理员设置</a></li>
                </ul>
            </div>
        </nav>





            <div class="jumbotron">
                <h2>网上书城后台管理----订单信息</h2>
                <div class="account">
                    <div>
                        <table class="table">
                            <tr>
                                <th>
                                    <p>订单编号</p>
                                </th>
                                <th>
                                    <p>订购客户</p>
                                </th>
                                <th>
                                    <p>联系方式</p>
                                </th>
                                <th>
                                    <p>支付日期</p>
                                </th>
                                <th>
                                    <p>失效日期</p>
                                </th>
                                <th>
                                    <p>商品数量</p>
                                </th>
                                <th>
                                    <p>购买图书的价格</p>
                                </th>
                                <th>
                                    <p>客户地址（省市区）</p>
                                </th>
                                <th>
                                    <p>客户地址（详细地址）</p>
                                </th>
                                <th>
                                    <p>备注</p>
                                </th>
                                <th>

                                    <p>操作</p>
                                </th>
                            </tr>

                            @foreach (var item in Model)
                            {
                                <tr>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderCode)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderName)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderPhone)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.PayTime)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.ExpireTime)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderAmount)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderPrice)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderRegio)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.OrderAddress)
                                    </td>
                                    <td>
                                        @Html.DisplayFor(modelItem => item.Remark)
                                    </td>
                                    <td>

                                        @Html.ActionLink("详情", "Details", new { id = item.Id }) |
                                        @Html.ActionLink("删除", "Delete", new { id = item.Id })
                                    </td>
                                </tr>
                            }

                        </table>
                    </div>
                </div>
            </div>

            <!--页脚-->
            <div id="footer">
                <hr style="margin:20px 0px;" />
                网上书城后台管理系统 - MVC架构 © @DateTime.Now.Year
            </div>



	<script type="text/javascript" src="~/conjs/bootstrap.js"></script>
	<script type="text/javascript" src="~/conjs/jquery-3.3.1.js"></script>
	<script type="text/javascript" src="~/conjs/jquery-3.4.1.js"></script>
</body>



